<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>核销</title>  
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Wx/css/base.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Wx/css/detail.css" />
</head>
<body>
<div class="detail">
	<div class="prolist">
		<div class="pro" onclick="window.location.href='__MODULE__/Foretaste/pro/gid/{$goods['id']}'">
			<div class="pic"><img src="<?= isMorePic($h_imgs)?>"/></div>
			<div class="name">
				<h2><b class="sc"><?=getunit($category)?></b>{$title} {$u_num}<?=getunit($unit)?></h2>
				<h5>{$type_name}</h5>
				<del>￥{$market}</del>
				<h4><span>{$price}积分即可试吃</span><i>{$sumorder}人已免费试吃</i></h4>
			</div>
		</div>
		<!--<div class="note">本产品为自提商品，社区二次分拣，开心享受美味</div>-->
	</div>

    <div class="information">
    	<p><span>取货人</span><b>{$member.realname}</b></p>
    	<p><span>联系电话</span><b>{$member.mobile}</b></p>
    	<p><span>取货份数</span><b style="color:#ff4400;">1份（<?=$order['u_num'].getunit($order['unit'])?>）</b></p>
    	<p><span>取货编码</span><b>{$order.order_sn}</b></p>
    </div>
	<div class="button"><input type="button"  onclick="cancel()" <if condition="($order['state'] eq 4) or ($order['state'] eq 5)">value="已核销" disabled <else /> value="立即核销"</if> /></div>
</div>
<script  src="__PUBLIC__/Wx/js/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
	function cancel() {
        $.post("",{'op':'receive'},function (d) {
            // alert(d.val);
            window.location.reload();
        })
    }
</script>
</body>
</html>